import { createWebHashHistory, createRouter } from 'vue-router'

import login from '@/view/login/index.vue'
import game from '@/view/game/index.vue'
import canvasGame from '@/view/canvasGame/index.vue'
import ps from '@/view/ps/index.vue'
import gameB from '@/view/gameB/index.vue'
import transformDoc from '@/view/transformDoc/index.vue'
import leaferTest from '@/view/leaferTest/index.vue'

import playGround from '@/view/playGround/index.vue'
import leaferVue from '@/view/leaferVue/index.vue'
import canvasSketch from '@/view/canvasSketch/index.vue'
import ancientBook from '@/view/ancientBook/index.vue'
import calcLayout from '@/view/calcLayout/index.vue'

const routes = [
  { path: '/', component: calcLayout },
  { path: '/login', component: login },
  { path: '/gameTest', component: canvasGame },
  { path: '/gameB', component: gameB },
  { path: '/ps', component: ps },
  { path: '/transformDoc', component: transformDoc },
  { path: '/leaferTest', component: leaferTest },
  { path: '/playGround', component: playGround },
  { path: '/leaferVue', component: playGround },
]

export const router = createRouter({
  history: createWebHashHistory(),
  routes,
})


export default router